import React from 'react'
import { BaseDetailPage, IBaseDetailPageState, IBaseDetailPageProps, http } from '@/lib'
import apis from '@/apis/CustomerManage'
import SettledReviewDetail from '@/components/SettledReviewDetail'
import { Button } from 'antd'

export default class Index extends BaseDetailPage<ISettledReviewDetailProps,ISettledReviewDetailState> {

  constructor(props) {
    super(props)
    this.state = {
      title: '入驻资质详情',
      queryAction: ()=>{
        return http.get(apis.SettledDetail, {
          params: {
            id: this.props.match.params.id
          }
        })
      },
    }
  }

  render() {
    return super.render({
      body: (
        <SettledReviewDetail dataSource={this.state.dataSource} />
      ),
    })
  }
  
}

interface ISettledReviewDetailProps extends IBaseDetailPageProps<{
  id: string
}> {

}

interface ISettledReviewDetailState extends IBaseDetailPageState {

}
